/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package baiwa.rta.dao;

import baiwa.rta.model.DataTableModel;
import baiwa.rta.model.RMaccrModel;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author jirapatjantsakool
 */
public interface CarCardDao {

	public List<RMaccrModel> findAll();

	@Deprecated
	public List<Map<String, Object>> findAllMap();

	public RMaccrModel findById(Integer id);

	public void create(RMaccrModel rMaccr) throws Exception;

	public boolean update(RMaccrModel rMaccr);

	public boolean delete(RMaccrModel rMaccr);

	public int nextCarCardId();

	public DataTableModel<RMaccrModel> findDataTable(RMaccrModel model,
			int iDisplayStart, int iDisplayLength);

}
